﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace DynamicViewFormApp.Setting
{
    class PublicVariable
    {
        /// <summary>
        /// 是否可新建
        /// </summary>
        private static bool isCanNew = false;
        /// <summary>
        /// 当前焦点文本框
        /// </summary>
        private static RichTextBox currentRichTextBox = null;
        private static string rtfContent = null;

        /// <summary>
        /// 是否可新建标识
        /// </summary>
        public static bool IsCanNew { get => isCanNew; set => isCanNew = value; }
        /// <summary>
        /// 设置或获取当前焦点文本框对象
        /// </summary>
        public static RichTextBox CurrentRichTextBox { get => currentRichTextBox; set => currentRichTextBox = value; }
        public static string RtfContent { get => rtfContent; set => rtfContent = value; }
    }
}
